Dictionary

interface Dictionary

Provides functionality for working with a spell check dictionary.

Functions

Link copied to clipboard
abstract fun add(word: String): Boolean
Adds the given word to the dictionary and schedules a write to disk.
Link copied to clipboard
abstract fun has(word: String): Boolean
Returns true if the dictionary contains the given word.
Link copied to clipboard
abstract fun remove(word: String): Boolean
Removes the given word from the dictionary and schedules a write to disk.
Link copied to clipboard
abstract fun words(): Collection<String>
Returns the words in the current dictionary or an empty collection if the dictionary does not have any word.